<!--
 * @FileDescription 综合评价
 * @Author lz
 * @Date 20230724 14:16:47
 * @LastEditors lz
 * @LastEditTime 20230724 14:16:47
-->
<template>
  <div class="ComEva">
    <div class="col_l">
      <div class="name_box">
        {{ HomeContent.Default.UserName.value || "" }}
      </div>
      <div class="congratulations">恭喜你，完成本次考核！</div>
      <div class="score">得分</div>
      <div class="fraction">{{ HomeContent.Default.AED.value.Score }}</div>
      <div class="line"></div>
      <div class="bottomBox">
        <div class="parameterBox">
          <div class="par_tit">故障修复率</div>
          <div class="par_cont">
            {{ HomeContent.Default.AED.value.Record.FailureRepairRate }}
          </div>
        </div>
        <div class="parameterBox">
          <div class="par_tit">用时</div>
          <div class="par_cont">
            <!-- {{ formatSeconds(HomeContent.Default.AED.value.UsedTime) }} -->
            {{ formatSeconds(HomeContent.Default.timeShow.value) }}
          </div>
        </div>
      </div>
    </div>
    <div class="col_r">
      <a-tabs v-model:activeKey="activeKey" class="tabBox">
        <a-tab-pane class="tab_1" key="1" tab="综合结果分析">
          <div class="t1_l">
            <div class="moduleName">
              <div class="MN_I">
                <img src="/images/ic_结果分析.png" />
              </div>
              <div class="NameText">结果分析</div>
            </div>
            <div id="main"></div>
          </div>
          <div class="t1_r">
            <div class="moduleName">
              <div class="MN_I">
                <img src="/images/ic_详细得分点.png" />
              </div>
              <div class="NameText">详细得分点</div>
            </div>
            <div
              class="t1_r_list"
              v-for="(item, index) in HomeContent.Default.Synthetical.value.Veidoos"
              :key="index"
            >
              <!-- <div class="t1_r_list"> -->
              <div class="scorePointName">{{ item.Name }}</div>
              <div class="SPF">{{ item.Result }}</div>
            </div>
          </div>
          <div class="t1_b">
            <div class="moduleName">
              <div class="MN_I">
                <img src="/images/ic_提升建议.png" />
              </div>
              <div class="NameText">提升建议</div>
            </div>
            <div class="t1_b_cont">
              <div
                class="t1_b_list"
                v-for="(item, index) in HomeContent.Default.Synthetical.value.Suggest"
                :key="index"
              >
                {{ index + 1 }}.{{ item }}
              </div>
            </div>
          </div>
        </a-tab-pane>
        <a-tab-pane key="2" tab="报告单">
          <div class="Popup">
            <div class="package_box">
              <div class="contentBox">
                <div class="big_box_g">
                  <div
                    class="form_g"
                    v-for="(item, index) in HomeContent.Default.workOrderSheet.value"
                    :key="index"
                  >
                    <div class="title_g BdBt">
                      <!-- {{ index + 1 }}.{{ item.Project }}(满分8.5分) -->
                      {{ index + 1 }}.{{ item.Project }}
                    </div>
                    <div class="box_title_g BdBt">
                      <div class="Box1_g BdRt">序号</div>
                      <div class="Box2_g BdRt">作业类型+作业对象+作业内容</div>
                      <div class="Box3_g BdRt">数据或异常情况记录</div>
                      <div class="Box4_g">维修措施</div>
                    </div>
                    <div
                      class="form_content"
                      v-for="(item1, index1) in item.WorkContents"
                      :key="index1"
                    >
                      <div class="context_box1 BdRt BdBt">
                        <span class="parameter_g">{{ item1.Serial }}</span>
                      </div>
                      <div class="context_box2 BdRt BdBt">
                        <span class="parameter_g">{{ item1.WorkType }}</span>
                      </div>
                      <div class="context_box3">
                        <div
                          class="small_box BdBt"
                          v-for="(item2, index2) in item1.WorkContents"
                          :key="index2"
                        >
                          <!-- 压力值 -->
                          <div class="small_box1 BdRt">
                            <span class="parameter_g">{{ item2.WorkContent }}</span>
                          </div>
                          <div class="small_box2 BdRt">
                            <div
                              v-for="(item3, index3) in item2.DataList"
                              :key="index3"
                              style="display: flex"
                            >
                              <div class="spacing">
                                <div v-if="item3.Type == '0'">{{ item3.Item }}</div>
                                <div v-if="item3.Type == '1'">{{ item3.Item }}</div>
                                <span v-if="item3.Type == '1'">{{
                                  item3.WorkValue
                                }}</span>
                                <span v-if="item3.Type == '1' && item3.WorkValue">{{
                                  item3.Unit
                                }}</span>
                              </div>
                              <div
                                class="gap"
                                v-for="(item4, index4) in item3.Item.split(',')"
                                :key="index4"
                                v-if="item3.Type == '2'"
                              >
                                <img
                                  src="/images/checkbox(1).png"
                                  v-if="item3.WorkValue == item4"
                                />
                                <img src="/images/checkbox(2).png" v-else />
                                {{ item4 }}
                              </div>
                            </div>
                          </div>
                          <div class="small_box3">
                            <span></span>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </a-tab-pane>
        <a-tab-pane key="3" tab="评分表">
          <div class="Popup">
            <div class="package_box">
              <div class="contentBox">
                <div class="title_box">
                  {{ HomeContent.Default.AED.value.Record.RatingForm.Name || "评分表" }}
                  <img
                    src="/images/ic_up_small.png"
                    class="retract_img"
                    @click="retract"
                    v-if="state.retract"
                  />
                  <img
                    src="/images/ic_down_small.png"
                    class="retract_img"
                    @click="retract"
                    v-else
                  />
                </div>
                <div class="BasicInformation" v-show="state.retract">
                  <div class="Basi_unit BOR BN">
                    <span class="unit_tit">选手参赛号</span>
                    <div class="unit_inp">
                      {{ HomeContent.Default.AED.value.Orders.OrderBase.Id || "" }}
                    </div>
                  </div>
                  <div class="Basi_unit BOR">
                    <span class="unit_tit">裁判签字</span>
                  </div>
                  <div class="Basi_unit BOR">
                    <span class="unit_tit">裁判长审判</span>
                  </div>
                  <div class="Basi_unit BOR BN">
                    <span class="unit_tit">统分裁判签字</span>
                  </div>
                  <div class="Basi_unit BOR">
                    <span class="unit_tit">裁判签字</span>
                  </div>
                  <div class="Basi_unit BOR">
                    <span class="unit_tit">监督仲裁签字</span>
                  </div>
                  <div class="Basi_unit BOR BN">
                    <span class="unit_tit">车辆信息登记</span>
                    <!-- <a-tooltip>
                      <template #title>
                        {{ HomeContent.Default.AED.value.Orders.OrderBase.CarId || "" }}
                      </template>
                      <div class="unit_inp">
                        {{ HomeContent.Default.AED.value.Orders.OrderBase.CarId || "" }}
                      </div>
                    </a-tooltip> -->
                  </div>
                  <div class="Basi_unit BOR">
                    <span class="unit_tit">比赛时长</span>
                    <div class="unit_inp">
                      {{
                        formatSeconds(HomeContent.Default.AED.value.Orders.OrderBase.Time)
                      }}
                    </div>
                  </div>
                  <div class="Basi_unit BOR">
                    <span class="unit_tit">实际用时</span>
                    <div class="unit_inp">
                      {{
                        formatSeconds(
                          HomeContent.Default.AED.value.Orders.OrderBase.UseTime
                        )
                      }}
                    </div>
                  </div>
                </div>
                <div class="big_box_p">
                  <div
                    class="form_p"
                    v-for="(item, index) in HomeContent.Default.ratingForm.value"
                    :key="index"
                  >
                    <div class="title_p BdBt">
                      <!-- {{ index + 1 }}.{{ item.Project }}(满分14分) -->
                      {{ index + 1 }}.{{ item.Project }}
                    </div>
                    <div class="box_title_p BdBt">
                      <div class="Box1 BdRt">序号</div>
                      <div class="Box2 BdRt">作业内容</div>
                      <div class="Box3 BdRt">
                        评分要点（各竞赛环节漏项或累计最多扣相应配分）
                      </div>
                      <div class="Box4 BdRt">配分</div>
                      <div class="Box5 BdRt">扣分</div>
                      <div class="Box6">判罚依据</div>
                    </div>
                    <div
                      class="form_content_p BdBt"
                      v-for="(item1, index1) in item.EvaluateGroupModels"
                      :key="index1"
                    >
                      <div class="Box1 BdRt">
                        <span class="parameter_p">{{ item1.Serial }}</span>
                      </div>
                      <div class="Box2 BdRt">
                        <span class="parameter_p">{{ item1.Stage }}</span>
                      </div>
                      <div class="Box3 BdRt list">
                        <!-- <el-checkbox
                          style="margin-left: 20px"
                          v-for="(item2, index2) in item1.Items"
                          v-model="item2.Result"
                          :key="index2"
                          >{{ item2.Description }}</el-checkbox
                        > -->
                        <div
                          style="margin: 5px 0"
                          v-for="(item2, index2) in item1.Items"
                          :key="index2"
                        >
                          <img src="/images/checkbox(1).png" v-if="item2.Result" />
                          <img src="/images/checkbox(2).png" v-else />
                          {{ item2.Description }}
                        </div>
                      </div>
                      <div class="Box4 BdRt">
                        <span class="parameter_p">
                          <!-- {{parseInt(item1.Share).toFixed(1)}} -->
                          {{ item1.Share }}
                        </span>
                      </div>
                      <div class="Box5 BdRt">
                        <span class="parameter_p">{{ item1.Score }}</span>
                      </div>
                      <div class="Box6">
                        <span class="parameter_p"></span>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </a-tab-pane>
        <a-tab-pane key="4" tab="故障修复记录">
          <div class="t4_l">
            <div class="moduleName">
              <div class="MN_I">
                <img src="/images/ic_结果分析.png" />
              </div>
              <div class="NameText">故障点统计</div>
            </div>
            <div class="FPSBox">
              <div class="fpsTxtTotal">
                设置 {{ HomeContent.Default.FaultRepair.value.Total }} 个故障点
              </div>
            </div>
            <div class="FPSBox">
              <img src="/images/checkbox_answer.png" class="smp" />
              <div class="fpsTxt">
                修复成功 {{ HomeContent.Default.FaultRepair.value.Fixed }} 个故障点
              </div>
            </div>
            <div class="FPSBox">
              <img src="/images/checkbox_incomplete.png" class="smp" />
              <div class="fpsTxt">
                未修复 {{ HomeContent.Default.FaultRepair.value.Wontfix }} 个故障点
              </div>
            </div>
            <div class="FPSBox">
              <img src="/images/checkbox_wrong.png" class="smp" />
              <div class="fpsTxt">
                修复错误 {{ HomeContent.Default.FaultRepair.value.Error }} 个故障点
              </div>
            </div>
          </div>
          <div class="t4_r">
            <div class="moduleName">
              <div class="MN_I">
                <img src="/images/ic_故障点记录.png" />
              </div>
              <div class="NameText">故障记录</div>
            </div>
            <div class="t4_content">
              <div
                class="t4_list"
                :class="item.State == 0 ? 't4_l_1' : item.State == 2 ? 't4_l_2' : ''"
                v-for="(item, index) in HomeContent.Default.FaultRepair.value.Items"
                :key="index"
              >
                <div class="t4_listText" style="width: 80%">
                  {{ item.Name }}
                </div>
                <div class="t4_list_ico" v-if="item.State == 0">
                  <img src="/images/checkbox_incomplete.png" />
                </div>
                <div class="t4_list_type" style="color: #b0b0b0" v-if="item.State == 0">
                  未修复
                </div>
                <div class="t4_list_ico" v-if="item.State == 1">
                  <img src="/images/checkbox_answer.png" />
                </div>
                <div class="t4_list_type" style="color: #42cb6e" v-if="item.State == 1">
                  修复正确
                </div>
                <div class="t4_list_ico" v-if="item.State == 2">
                  <img src="/images/checkbox_wrong.png" />
                </div>
                <div class="t4_list_type" style="color: #fb4e4e" v-if="item.State == 2">
                  修复错误
                </div>
              </div>
            </div>
          </div>
        </a-tab-pane>
      </a-tabs>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref, reactive, onMounted } from "vue";
import * as echarts from "echarts";
import HomeContent from "../HomeContent";
import Attachment1 from "../Attachment1/index.vue";
import WebSocketComponent from "@runtime/module/WebSocket/WebSocketComponent";
import { ClientMessage } from "@runtime/generate/message/ClientMessage";
import MessageCode from "../MessageCode";

const state = reactive({
  retract: true,
  current: 1,
  visible: false,
  ListTypes: 0,
  values: <any>[],
  DPN: 1,
});
const activeKey = ref("1");
let option: any;
option = {
  tooltip: {
    trigger: "axis",
  },
  legend: {
    left: "center",
    data: [],
  },
  radar: [
    {
      // indicator: [
      //   HomeContent.Default.RadarIndicator.value,
      //   // { text: HomeContent.Default.Synthetical.value.Veidoos[0].Name, max: 100 },
      //   // { text: HomeContent.Default.Synthetical.value.Veidoos[1].Name, max: 100 },
      //   // { text: HomeContent.Default.Synthetical.value.Veidoos[2].Name, max: 100 },
      //   // { text: HomeContent.Default.Synthetical.value.Veidoos[3].Name, max: 100 },
      //   // { text: HomeContent.Default.Synthetical.value.Veidoos[4].Name, max: 100 },
      //   // { text: HomeContent.Default.Synthetical.value.Veidoos[5].Name, max: 100 },
      //   // { text: HomeContent.Default.Synthetical.value.Veidoos[6].Name, max: 100 },
      // ],
      indicator: HomeContent.Default.RadarIndicator.value,
      radius: 90,
    },
  ],
  series: [
    {
      type: "radar",
      tooltip: {
        trigger: "item",
      },
      itemStyle: {
        color: "#d6ebba",
        borderColor: "#d6ebba",
      },
      areaStyle: {},
      data: [
        {
          // value: [
          //   HomeContent.Default.RadarResultValue.value,
          //   // HomeContent.Default.Synthetical.value.Veidoos[0].Result,
          //   // HomeContent.Default.Synthetical.value.Veidoos[1].Result,
          //   // HomeContent.Default.Synthetical.value.Veidoos[2].Result,
          //   // HomeContent.Default.Synthetical.value.Veidoos[3].Result,
          //   // HomeContent.Default.Synthetical.value.Veidoos[4].Result,
          //   // HomeContent.Default.Synthetical.value.Veidoos[5].Result,
          //   // HomeContent.Default.Synthetical.value.Veidoos[6].Result,
          // ],
          value: HomeContent.Default.RadarResultValue.value,
          name: "结果分析",
        },
      ],
    },
  ],
};
async function returnBtn() {
  console.log("返回");
}
//秒数转化为时分秒
function formatSeconds(value: any) {
  if (value == null) {
    return "";
  }
  //@ts-ignore
  let secondTime = parseInt(value); // 秒
  let minuteTime = 0; // 分
  let hourTime = 0; // 小时
  if (secondTime > 60) {
    //如果秒数大于60，将秒数转换成整数
    //获取分钟，除以60取整数，得到整数分钟
    //@ts-ignore
    minuteTime = parseInt(secondTime / 60);
    //获取秒数，秒数取余，得到整数秒数
    //@ts-ignore
    secondTime = parseInt(secondTime % 60);
    //如果分钟大于60，将分钟转换成小时
    if (minuteTime > 60) {
      //获取小时，获取分钟除以60，得到整数小时
      //@ts-ignore
      hourTime = parseInt(minuteTime / 60);
      //获取小时后取余的分，获取分钟除以60取余的分
      //@ts-ignore
      minuteTime = parseInt(minuteTime % 60);
    }
  }
  //@ts-ignore
  var result = "" + parseInt(secondTime) + "秒";

  if (minuteTime > 0) {
    //@ts-ignore
    result = "" + parseInt(minuteTime) + "分" + result;
  }
  if (hourTime > 0) {
    //@ts-ignore
    result = "" + parseInt(hourTime) + "小时" + result;
  }
  // console.log("result11111", result);
  HomeContent.Default.AllTime.value = result;
  return result;
}
// 收起
function retract() {
  state.retract = !state.retract;
}

onMounted(async () => {
  // console.log(
  //   "???????????????????????????????????",
  //   HomeContent.Default.Synthetical.value
  // );
  let chartDom = document.getElementById("main");
  let myChart = echarts.init(chartDom);
  myChart.setOption(option, true);
  // console.log(
  //   "HomeContent.Default.ratingForm.value333333: ",
  //   HomeContent.Default.ratingForm.value
  // );
  console.log(
    "HomeContent.Default.workOrderSheet.value",
    HomeContent.Default.workOrderSheet.value
  );
  console.log(
    "HomeContent.Default.RadarResultValue.value",
    HomeContent.Default.RadarResultValue.value
  );
  console.log(
    "HomeContent.Default.RadarIndicator.value",
    HomeContent.Default.RadarIndicator.value
  );
});
</script>

<style scoped>
.ComEva {
  width: 100%;
  height: 95vh;
  position: absolute;
  left: 0;
  top: 5vh;
  background: #f6f6f6;
  z-index: 2;
}

.col_r {
  width: 1520px;
  height: 946px;
  background: #ffffff;
  box-shadow: 0px 20px 80px 0px rgba(179, 189, 185, 0.2);
  position: absolute;
  right: 0;
  bottom: 40px;
  border-radius: 40px 0 0 40px;
}

.col_l {
  position: absolute;
  left: 40px;
  bottom: 184px;
  width: 320px;
  height: 700px;
  background: #ffffff;
  border-radius: 40px 40px 40px 40px;
  text-align: center;
}

.ret_btn {
  width: 128px;
  height: 52px;
  border-radius: 6px 6px 6px 6px;
  opacity: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: absolute;
  left: 40px;
  bottom: 60px;
}

.retract_img {
  float: right;
  width: 24px;
  margin-top: 16px;
  margin-right: 16px;
}

.ret_txt {
  font-size: 20px;
  font-weight: 500;
  color: #202020;
  line-height: 48px;
}

.ret_ico {
  width: 28px;
  margin-top: -9px;
  margin-right: 12px;
  margin-left: 24px;
}

:deep().ant-tabs-tab:nth-child(1) {
  margin-left: 40px !important;
}

.tabBox {
  margin-top: 48px;
}

:deep().ant-tabs-tab-btn {
  font-size: 20px;
  font-weight: 600;
  color: #b0b0b0;
}

:deep().ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #000000;
}

:deep().ant-tabs-ink-bar {
  background-color: #000000;
}

.t1_l {
  width: 700px;
  height: 500px;
  background: linear-gradient(180deg, #f4f4f4 0%, rgba(240, 241, 254, 0) 100%);
  border-radius: 40px 40px 40px 40px;
  float: left;
  margin-left: 40px;
  margin-top: 30px;
}

.t1_r {
  width: 700px;
  height: 500px;
  background: linear-gradient(180deg, #f4f4f4 0%, rgba(240, 241, 254, 0) 100%);
  border-radius: 40px 40px 40px 40px;
  margin-left: 40px;
  margin-top: 30px;
  float: left;
}

.t1_b {
  width: 1440px;
  height: 218px;
  background: linear-gradient(180deg, #f4f4f4 0%, rgba(240, 241, 254, 0) 100%);
  border-radius: 40px 40px 40px 40px;
  float: left;
  margin-left: 40px;
  margin-top: 40px;
}

.t1_b_cont {
  margin: 0 auto;
  width: 96%;
  height: 150px;
  overflow-y: auto;
}

.t1_b_list {
  font-size: 16px;
  font-weight: 400;
  color: #202020;
  margin: 10px;
}

.name_box {
  font-size: 24px;
  font-weight: bold;
  color: #202020;
  padding-top: 40px;
}

.congratulations {
  font-size: 14px;
  font-weight: 400;
  color: #5e5e5e;
  margin-top: 8px;
}

.score {
  font-size: 16px;
  font-weight: 400;
  color: #b0b0b0;
  margin-top: 48px;
}

.fraction {
  margin-top: 16px;
  font-size: 78px;
  font-weight: 600;
  color: #000000;
}

.line {
  width: 280px;
  height: 1px;
  background-color: #f0f0f0;
  margin: 10px auto;
}

.bottomBox {
  width: 100%;
  overflow: hidden;
  font-size: 16px;
  color: #202020;
}

.parameterBox {
  width: 50%;
  float: left;
}

.par_tit {
  margin-top: 48px;
  font-weight: 400;
  color: #b0b0b0;
}

.par_cont {
  font-weight: bold;
  margin-top: 20px;
}

.moduleName {
  overflow: hidden;
}

.MN_I {
  float: left;
  width: 24px;
  margin-top: 40px;
  margin-left: 40px;
}

.MN_I > img {
  width: 100%;
}

.NameText {
  float: left;
  font-size: 20px;
  font-weight: 500;
  color: #202020;
  margin-top: 38px;
  margin-left: 10px;
}

.t4_l {
  width: 500px;
  height: 764px;
  background: linear-gradient(180deg, #f4f4f4 0%, rgba(240, 241, 254, 0) 100%);
  border-radius: 40px 40px 40px 40px;
  margin-top: 30px;
  margin-left: 40px;
  float: left;
}

.addTxt {
  float: left;
  font-size: 16px;
  font-weight: 400;
  color: #b0b0b0;
  padding-left: 20px;
}

.t4_r {
  width: 900px;
  height: 764px;
  background: linear-gradient(180deg, #f4f4f4 0%, rgba(240, 241, 254, 0) 100%);
  border-radius: 40px 40px 40px 40px;
  margin-top: 30px;
  margin-left: 40px;
  float: left;
}

.FPSBox {
  overflow: hidden;
  margin: 24px 0 48px 0;
}

.circle {
  float: left;
  width: 72px;
  height: 72px;
  background: #000000;
  border-radius: 40px 40px 40px 40px;
  font-size: 24px;
  font-weight: bold;
  line-height: 72px;
  color: #9bfb4e;
  text-align: center;
  margin-left: 72px;
}

.fpsTxt {
  float: left;
  font-size: 16px;
  font-weight: 400;
  color: #202020;
  padding-left: 4px;
}

.t4_content {
  width: 840px;
  height: 636px;
  margin: 0 auto;
  margin-top: 20px;
  overflow-y: auto;
}

.Existing {
  color: rgba(26, 26, 26, 1);
  width: 655px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t4_list {
  width: 820px;
  height: 72px;
  background: linear-gradient(
    90deg,
    rgba(155, 251, 78, 0.1) 0%,
    rgba(155, 251, 78, 0.07) 58%,
    rgba(155, 251, 78, 0) 100%
  );
  border-radius: 8px 8px 8px 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

::-webkit-scrollbar {
  width: 6px;
  height: 1px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #dfe1e8;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
  background: #f8f8f8;
}

.t4_listText {
  font-size: 16px;
  font-weight: 400;
  color: #202020;
  margin-left: 16px;
  margin-right: 16px;
}

.t4_list_ico {
  width: 24px;
  margin-right: 6px;
}

.t4_list_ico > img {
  width: 100%;
}

.t1_r_list {
  overflow: hidden;
  margin-top: 20px;
}

.scorePointName {
  font-size: 16px;
  font-weight: 400;
  color: #5e5e5e;
  float: left;
  margin-left: 40px;
}

.SPF {
  font-size: 16px;
  font-weight: 600;
  color: #202020;
  float: right;
  margin-right: 126px;
}

#main {
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.t4_list_type {
  font-size: 16px;
}

.t4_l_1 {
  background: transparent;
}

.t4_l_2 {
  background: linear-gradient(
    90deg,
    rgba(251, 78, 78, 0.1) 0%,
    rgba(251, 78, 78, 0.07) 58%,
    rgba(251, 78, 78, 0) 100%
  );
}

.Popup {
  width: 1520px;
  height: 800px;
  border-radius: 16px 16px 16px 16px;
}
.contentBox {
  border: 2px solid #e8ecf4;
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.form_content_unit {
  width: 100%;
  min-height: 64px;
  position: relative;
  overflow: hidden;
}

.form_content_unit_tit {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.form_content_unit_list {
  width: 137%;
  float: left;
  height: 64px;
  line-height: 64px;
}

.rep_T1 {
  width: 26%;
}

.rep_T2 {
  width: 54%;
}

.content_unit_tit {
  font-size: 16px;
  font-weight: 400;
  color: #202020;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translate(0, -50%);
}

.title_box {
  height: 62px;
  line-height: 62px;
  font-size: 20px;
  font-weight: 600;
  padding-left: 10px;
  color: #000;
}

.BasicInformation {
  width: 100%;
  height: 168px;
}

.Basi_unit {
  float: left;
  width: 33.333%;
  height: 56px;
}

.BOR {
  border-top: 1px solid #e8ecf4;
  border-left: 1px solid #e8ecf4;
}
.BN {
  border-left: none;
}

.unit_tit {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 56px;
  padding-left: 16px;
  font-weight: 600;
}

.unit_inp {
  width: 300px;
  height: 56px;
  outline: none;
  font-size: 16px;
  border: none;
  float: right;
  margin-right: 16px;
  line-height: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package_box {
  overflow-y: auto;
  height: 764px;
  padding-right: 20px;
  margin: 0 40px;
  margin-top: 6px;
  color: #000;
}

.package_box::-webkit-scrollbar {
  width: 6px;
  height: 1px;
}

.package_box::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #dfe1e8;
}

.package_box::-webkit-scrollbar-track {
  border-radius: 10px;
  background: #f8f8f8;
}

.Form_box {
  width: 100%;
}

.tit_box {
  width: 100%;
  height: 42px;
  background-color: #f7f8fb;
}

.form_tit {
  float: left;
  text-align: center;
  line-height: 42px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.unit_list_box {
  float: left;
  margin-left: 26%;
}
:deep().ant-pagination {
  margin-top: 10px;
  margin-left: 40px;
}

.fpsTxtTotal {
  width: 420px;
  height: 42px;
  background: linear-gradient(
    90deg,
    rgba(155, 251, 78, 0.1) 0%,
    rgba(155, 251, 78, 0.07) 58%,
    rgba(155, 251, 78, 0) 100%
  );
  border-radius: 8px 0px 0px 8px;
  font-size: 16px;
  font-weight: 600;
  margin-left: 40px;
  line-height: 42px;
  padding-left: 20px;
  margin-top: 20px;
}

.smp {
  width: 24px;
  height: 24px;
  float: left;
  margin-left: 60px;
}

/* 评分表样式 */

.big_box_p {
  min-height: 800px;
  border-top: 1px solid #e8ecf4;
}

.form_p {
  min-height: 200px;
}

.title_p {
  width: 100%;
  height: 50px;
  font-size: 20px;
  font-weight: 600;
  line-height: 50px;
  background: #f7f8fb;
}

.box_title_p {
  display: flex;
  font-size: 20px;
  text-align: center;
  height: 40px;
  line-height: 40px;
}

.form_content_p {
  width: 100%;
  font-size: 16px;
  display: flex;
  min-height: 64px;
}

.parameter_p {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: black;
}

.list {
  display: grid;
  margin-left: 0;
}

.BdBt {
  border-bottom: 1px solid #e8ecf4;
}

.BdRt {
  border-right: 1px solid #e8ecf4;
}

.Box1 {
  width: 8%;
  position: relative;
}

.Box2 {
  width: 13%;
  position: relative;
  text-align: center;
}

.Box3 {
  width: 53%;
  padding-left: 16px;
}

.Box4 {
  width: 8%;
  position: relative;
}

.Box5 {
  width: 8%;
  position: relative;
}

.Box6 {
  width: 10%;
  position: relative;
}

/* 工单样式 */
.big_box_g {
  min-height: 800px;
  border-top: 1px solid #e8ecf4;
}

.form_g {
  min-height: 10px;
}

.title_g {
  width: 100%;
  height: 50px;
  font-size: 20px;
  font-weight: 600;
  line-height: 50px;
  background: #f7f8fb;
  padding-left: 16px;
}

.box_title_g {
  display: flex;
  font-size: 15.5px;
  font-weight: 600;
  text-align: center;
  height: 40px;
  line-height: 40px;
}

.Box1_g {
  width: 8%;
  position: relative;
}

.Box2_g {
  width: 44%;
  position: relative;
}

.Box3_g {
  width: 40%;
}

.Box4_g {
  width: 8%;
  position: relative;
}

.form_content {
  width: 100%;
  font-size: 16px;
  display: flex;
}
.parameter_g {
  width: fit-content;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: black;
}
.context_box1 {
  width: 8%;
  text-align: center;
  position: relative;
}

.context_box2 {
  width: 8%;
  text-align: center;
  position: relative;
}

.context_box3 {
  width: 84%;
}

.small_box {
  display: flex;
}

.small_box1 {
  width: 42.9%;
  position: relative;
}

.small_box2 {
  width: 47.6%;
  padding-left: 16px;
}

.small_box3 {
  width: 9.5%;
}
.spacing {
  display: flex;
  margin-top: 12px;
}
.gap {
  display: flex;
  margin-top: 8px;
  margin-bottom: 12px;
}
</style>
